package com.maxd.service.lucky;


import com.maxd.model.LuckyValueQueue;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

public interface ILuckyValueQueueService {

    LuckyValueQueue saveBody(LuckyValueQueue luckyValueQueue);

    int updateLuckyValueQueue(Long userId,Long luckyQueueId,Integer state,String createTime);

    LuckyValueQueue selectLuckyValueQueueByUserId(Long userId);

    Integer selectUserLuckyQueueByInvitation( String invitation, Integer sort);

    Integer selectLuckQueueLocationByUserId(Long userId , Long luckyQueueId);

    Integer selectLuckQueueCount(Long luckyQueueId);

    List<Map<String,Object>> selectLuckQueueLocation(Long luckyQueueId);

    Map<String,Object> selectLuckQueueLocationByUserIds( String invitation,Long userId , Long luckyQueueId);

    Page<Map<String,Object>> selectLuckyQueueByUser(Pageable pageable, String invitation);

    int updateLuckyValueQueue(Integer state, Long id);

    List<Long> selectLuckyQueueUserIdByLuckyQueueId(@Param("luckyQueueId")Long luckyQueueId);

}
